package com.qf.attendance.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * zrx-考勤表
 */
@Data
@TableName(value = "time_sheet")
public class TimeSheet {
    public static final String COL_TIME_SHEET_ID = "time_sheet_id";
    public static final String COL_UID = "uid";
    public static final String COL_WORK_STATUS = "work_status";
    public static final String COL_DEPT_ID = "dept_id";
    public static final String COL_STATUS = "status";
    public static final String COL_IS_DEL = "is_del";
    public static final String COL_WORK_HOURS = "work_hours";
    public static final String COL_CLOSING_TIME = "closing_time";
    public static final String COL_DATE = "date";
    public static final String COL_OVERTIME = "overtime";
    public static final String COL_LEAVE_DAYS = "leave_days";
    public static final String COL_ABSENTEEISM = "absenteeism";
    public static final String COL_USER_NAME = "user_name";
    public static final String COL_OPTIME = "optime";
    public static final String COL_TRANSACTORS_ID = "transactors_id";
    /**
     * 主键
     */
    @TableId(value = "time_sheet_id", type = IdType.INPUT)
    private Integer timeSheetId;
    /**
     * 员工ID
     */
    @TableField(value = "`uid`")
    private Integer uid;
    /**
     * 0表示正常 1表示迟到早退 3表示旷工 4表示加班 5表示休假 6表示外勤
     */
    @TableField(value = "work_status")
    private Integer workStatus;
    /**
     * 部门ID
     */
    @TableField(value = "dept_id")
    private Integer deptId;
    /**
     * 0表示审核中  2表示审核通过
     */
    @TableField(value = "`status`")
    private Integer status;
    /**
     * 假删除 0表示未删除 1表示删除
     */
    @TableField(value = "is_del")
    @TableLogic(value = "0", delval = "1")
    private Integer isDel;
    /**
     * 上班时间
     */
    @TableField(value = "work_hours")
    private Date workHours;
    /**
     * 下班时间
     */
    @TableField(value = "closing_time")
    private Date closingTime;
    /**
     * 日期
     */
    @TableField(value = "`date`")
    private Date date;
    /**
     * 加班时间
     */
    @TableField(value = "overtime")
    private Double overtime;
    /**
     * 请假天数
     */
    @TableField(value = "leave_days")
    private Double leaveDays;
    /**
     * 旷工天数
     */
    @TableField(value = "absenteeism")
    private Double absenteeism;
    /**
     * 员工姓名
     */
    @TableField(value = "user_name")
    private String userName;
    /**
     * 操作时间
     */
    @TableField(value = "optime")
    private Date optime;
    /**
     * 办理人ID
     */
    @TableField(value = "transactors_id")
    private Integer transactorsId;
}